chore: allowlist GlueHook V3 hook - #1408
Closed
lalilulel0x wants to merge 1 commit into
Closed
lalilulel0x wants to merge 1 commit into
lalilulel0x wants to merge 1 commit into
Conversation
This was referenced Aug 7, 2026
lalilulel0x
force-pushed
the
add-gluehook-allowlist
branch
2 times, most recently
from
August 7, 2026 21:46
d260276 to
3b5f90c
Compare
Contributor
Graphite Automations"Request reviewers once CI passes on routing-api repo" took an action on this PR • (08/19/26)3 reviewers were added and 1 assignee was added to this PR based on Siyu Jiang (See-You John)'s automation. |
lalilulel0x
force-pushed
the
add-gluehook-allowlist
branch
from
September 14, 2026 10:36
80da458 to
89da5b7
Compare
0xbb021554c5294328b04fa313669715bd201ba040 on Ethereum, Optimism, BNB, Polygon, Avalanche, Base, Arbitrum, Unichain, World Chain, Soneium and X Layer. Flags 0x2040 (beforeInitialize + afterSwap, no delta flags). Co-authored-by: Cursor <cursoragent@cursor.com>
lalilulel0x
force-pushed
the
add-gluehook-allowlist
branch
from
September 14, 2026 11:54
89da5b7 to
68b3c16
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allowlist GlueHook V3 —
0xbb021554c5294328b04fa313669715bd201ba040— on the 11 mainnets where it is deployed and the routing API has aChainId: Ethereum, Optimism, BNB Chain, Polygon, Avalanche, Base, Arbitrum, Unichain, World Chain, Soneium, X Layer. Same address on every chain (plainCREATEfrom a fresh key, nonce 0 library, nonce 1 hook).What the hook does. A free, keyless, general-purpose Uniswap v4 hook: every pool that adopts it gets a permissionless buyback pot that buys the pool's own token behind every swap (volume-paced, gated on a reference tick), plus an optional auto-compounding LP program. Site: https://gluehook.trade · source: https://github.com/glue-finance/GlueHook · docs: https://gluehook.trade/docs
Why it is safe to route through. Permission bits
0x2040=beforeInitialize+afterSwaponly. NobeforeSwap, no*ReturnDeltaflags, no dynamic fees (dynamic-fee pools are refused atbeforeInitialize). The hook never touches the swapper's amounts, so the quoter's result is exactly what the user receives; the pot's own buy happens insideafterSwapagainst the hook's own balance. Verified source on every chain's explorer; ERC-7730 clear-signing descriptors are in the repository undererc7730/.This supersedes the earlier revision of this PR, which pointed at the previous generation (V2,
0x0f41…20c8, bits0x20C8withbeforeSwap+beforeSwapReturnDelta). V2 stays live for its existing pools but is not the hook we are asking to allowlist.Example pool (Base)
https://app.uniswap.org/explore/pools/base/0x92539a4f035e4cf0584a5d3b2a06b11fa911715a1279d3d6a9214045a213394d
currency0 = ETH (0x0),currency1 = CLAWD 0x9f86dB9fc6f7c9408e8Fda3Ff8ce4e78ac7a6b07,fee = 10000,tickSpacing = 200,hooks = 0xbb021554c5294328b04fa313669715bd201ba0400x92539a4f035e4cf0584a5d3b2a06b11fa911715a1279d3d6a9214045a213394d0x6ff5…9b43and the hook, all successfulV4Quoter.quoteExactInputSingleon Base (0x0d5e0f971ed27fbff6c2837bf31316121532048d) for0.00001 ETH → CLAWDthrough this pool returnsamountOut = 5041987413827509707048,gasEstimate = 445709;StateView.getSlot0shows tick200984, lpFee10000, liquidity4563899956575731384.I could not reach the
0c1j0xp0hl.execute-api.us-east-2.amazonaws.com/prod/quoteendpoint used in #1390 / #1391 from outside (it answers403 Forbidden), so the/quotecall withhooksOptions=HOOKS_INCLUSIVE&poolsToManuallyRouteThrough=0x92539a4f…394dis left for a maintainer to run, in the same form as #1390:Live V3 pools on every other allowlisted chain
Same PoolKey shape everywhere (
currency0 = native,fee = 10000,tickSpacing = 200,hooks = 0xbb02…a040), each launched, swapped both ways, LP added and 50 % removed:0x6982…19330xff4ee2c764ab548d328946d48745dd0cf9ff3c1437987e382656717463530a1c0x25d8…bb000x17effe84fcc8fba2f85d8534cebb323b14355b45efab4e31afa8361e9cf30f520x25d8…bb000x17effe84fcc8fba2f85d8534cebb323b14355b45efab4e31afa8361e9cf30f520xA3f7…3D3A0xccf13308d798ac3074640aba552b1510d9cfcf76362fa19c92fdce947d2d307f0x420F…23290x138b11bda9762467464333ee05e884ab14397cbdc0b5afecba15da0dc9eb2b9e0x15D0…f68d0xf8822c0e9dcaac58cba94c5c4de577fc0833823682bdc01d707771d9605b0e2a0x6245…0c470x94f23de550de0e097f834d0f080bd45708e1c90b4718d91d346487232e93647e0x4200…00420x6d90e541318d6085ffa77ee59591d3f3d7ab30ae0df49d02361502563a2996460x2CAE…94410xaa5d4af79d979180e9b3e91c647f616035b09a8b529bfff024c06ffefbf7f00a0x2cFc…30030x0195a110588bb663e4c63064082f2a7770d62ecc9c5899e6d013757fdbfe7df90xFAfD…79E70x232b62d239d1cd8df8b86a8ec68935b760961b48a76dfea116357ebef9cf42780x74b7…6d220x904f8af4ef19f16e0726cf40f4342b1f9a5d01baef716f6a2acd8a3054aeacff